package jus.aor.talk.v5;

import java.io.Serializable;

import jus.aor.talk.Message;

public class MPQuery extends Message implements java.io.Serializable {
	
	enum Reponse { Accept, Decline, Unpronounced, NotFound };
	
	public IntervenantInterface demandeur;
	public IntervenantInterface receveur;
	public Reponse reponse = null;

	public MPQuery(IntervenantInterface demandeur, IntervenantInterface receveur) {
		this.demandeur = demandeur;
		this.receveur = receveur;
	}
	
	public String toString() {
		if(this.reponse == Reponse.Accept)
			return "MP Accepted";
		if(this.reponse == Reponse.Decline)
			return "MP Declined";
		if(this.reponse == Reponse.Unpronounced)
			return "MP Not Answered";
		if(this.reponse == Reponse.NotFound)
			return "Intervenant Not found";
		return "";
	}
}
